import { Button, Card, message } from 'antd';
import React from 'react';
import './ui.less';

export default class Message extends React.Component {
    showMessage = () => {
        message.loading("nihaole")
    }
    render() {
        return (
            <div>
                <Card title="全局提示框" className="card-wrap">
                    <Button type="primary" onClick={this.showMessage}>success</Button>
                    <Button type="primary">info</Button>
                    <Button type="primary">Warning</Button>
                    <Button type="primary">Error</Button>
                    <Button type="primary">loading</Button>
                </Card>
            </div>
        )
    }
}